package com.yjc.drygoods.ware.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 换货单
 * 
 * @author yjc
 * @email yjc19979401754@126.com
 * @date 2022-11-01 16:20:12
 */
@Data
@TableName("wms_exchange")
public class ExchangeEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * 换货人id
	 */
	private Long assigneeId;
	/**
	 * 换货人名称
	 */
	private String assigneeName;
	/**
	 * 联系电话
	 */
	private String phone;
	/**
	 * 优先级
	 */
	private Integer priority;
	/**
	 * 状态
	 */
	private Integer status;
	/**
	 * 总金额
	 */
	private BigDecimal amount;
	/**
	 * 创建日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	/**
	 * 更新日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date updateTime;
	/**
	 * 该采购单下辖的所有采购需求
	 */
	@TableField(exist = false)
	private List<ExchangeDetailEntity> items;


}
